<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pytils.test.test_numeral</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pytils-module.html">Package&nbsp;pytils</a> ::
        <a href="pytils.test-module.html">Package&nbsp;test</a> ::
        Module&nbsp;test_numeral
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript: void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pytils.test.test_numeral-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pytils.test.test_numeral-module.html">Module pytils.test.test_numeral</a></h1>
<pre class="py-src">
<span class="py-lineno">  1</span>  <span class="py-line"><span class="py-comment"># -*- coding: utf-8 -*-</span> </span>
<span class="py-lineno">  2</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># License: GNU GPL2</span> </span>
<span class="py-lineno">  3</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># Author: Pythy &lt;the.pythy@gmail.com&gt;</span> </span>
<span class="py-lineno">  4</span>  <span class="py-line"><span class="py-comment"></span><span class="py-docstring">"""</span> </span>
<span class="py-lineno">  5</span>  <span class="py-line"><span class="py-docstring">Unit-tests for pytils.numeral</span> </span>
<span class="py-lineno">  6</span>  <span class="py-line"><span class="py-docstring">"""</span> </span>
<span class="py-lineno">  7</span>  <span class="py-line"> </span>
<span class="py-lineno">  8</span>  <span class="py-line"><span id="link-0" class="py-name"><a title="pytils.__id__
pytils.dt.__id__
pytils.numeral.__id__
pytils.templatetags.__id__
pytils.templatetags.pytils_dt.__id__
pytils.templatetags.pytils_numeral.__id__
pytils.templatetags.pytils_translit.__id__
pytils.test.__id__
pytils.test.test_dt.__id__
pytils.test.test_numeral.__id__
pytils.test.test_translit.__id__
pytils.test.test_utils.__id__
pytils.translit.__id__
pytils.utils.__id__" class="py-name" href="#" onclick="doclink('link-0', '__id__', 'Variable pytils.__id__=pytils-module.html#__id__,Variable pytils.dt.__id__=pytils.dt-module.html#__id__,Variable pytils.numeral.__id__=pytils.numeral-module.html#__id__,Variable pytils.templatetags.__id__=pytils.templatetags-module.html#__id__,Variable pytils.templatetags.pytils_dt.__id__=pytils.templatetags.pytils_dt-module.html#__id__,Variable pytils.templatetags.pytils_numeral.__id__=pytils.templatetags.pytils_numeral-module.html#__id__,Variable pytils.templatetags.pytils_translit.__id__=pytils.templatetags.pytils_translit-module.html#__id__,Variable pytils.test.__id__=pytils.test-module.html#__id__,Variable pytils.test.test_dt.__id__=pytils.test.test_dt-module.html#__id__,Variable pytils.test.test_numeral.__id__=pytils.test.test_numeral-module.html#__id__,Variable pytils.test.test_translit.__id__=pytils.test.test_translit-module.html#__id__,Variable pytils.test.test_utils.__id__=pytils.test.test_utils-module.html#__id__,Variable pytils.translit.__id__=pytils.translit-module.html#__id__,Variable pytils.utils.__id__=pytils.utils-module.html#__id__'); return false;">__id__</a></span></span> <span class="py-op">=</span> <span id="link-1" class="py-name"><a title="pytils.__revision__
pytils.dt.__revision__
pytils.numeral.__revision__
pytils.templatetags.__revision__
pytils.templatetags.pytils_dt.__revision__
pytils.templatetags.pytils_numeral.__revision__
pytils.templatetags.pytils_translit.__revision__
pytils.test.__revision__
pytils.test.test_dt.__revision__
pytils.test.test_numeral.__revision__
pytils.test.test_translit.__revision__
pytils.test.test_utils.__revision__
pytils.translit.__revision__
pytils.utils.__revision__" class="py-name" href="#" onclick="doclink('link-1', '__revision__', 'Variable pytils.__revision__=pytils-module.html#__revision__,Variable pytils.dt.__revision__=pytils.dt-module.html#__revision__,Variable pytils.numeral.__revision__=pytils.numeral-module.html#__revision__,Variable pytils.templatetags.__revision__=pytils.templatetags-module.html#__revision__,Variable pytils.templatetags.pytils_dt.__revision__=pytils.templatetags.pytils_dt-module.html#__revision__,Variable pytils.templatetags.pytils_numeral.__revision__=pytils.templatetags.pytils_numeral-module.html#__revision__,Variable pytils.templatetags.pytils_translit.__revision__=pytils.templatetags.pytils_translit-module.html#__revision__,Variable pytils.test.__revision__=pytils.test-module.html#__revision__,Variable pytils.test.test_dt.__revision__=pytils.test.test_dt-module.html#__revision__,Variable pytils.test.test_numeral.__revision__=pytils.test.test_numeral-module.html#__revision__,Variable pytils.test.test_translit.__revision__=pytils.test.test_translit-module.html#__revision__,Variable pytils.test.test_utils.__revision__=pytils.test.test_utils-module.html#__revision__,Variable pytils.translit.__revision__=pytils.translit-module.html#__revision__,Variable pytils.utils.__revision__=pytils.utils-module.html#__revision__'); return false;">__revision__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$Id: test_numeral.py 15 2006-10-02 11:56:20Z the.pythy $"</span> </span>
<span class="py-lineno">  9</span>  <span class="py-line"><span id="link-2" class="py-name"><a title="pytils.__url__
pytils.dt.__url__
pytils.numeral.__url__
pytils.templatetags.__url__
pytils.templatetags.pytils_dt.__url__
pytils.templatetags.pytils_numeral.__url__
pytils.templatetags.pytils_translit.__url__
pytils.test.__url__
pytils.test.test_dt.__url__
pytils.test.test_numeral.__url__
pytils.test.test_translit.__url__
pytils.test.test_utils.__url__
pytils.translit.__url__
pytils.utils.__url__" class="py-name" href="#" onclick="doclink('link-2', '__url__', 'Variable pytils.__url__=pytils-module.html#__url__,Variable pytils.dt.__url__=pytils.dt-module.html#__url__,Variable pytils.numeral.__url__=pytils.numeral-module.html#__url__,Variable pytils.templatetags.__url__=pytils.templatetags-module.html#__url__,Variable pytils.templatetags.pytils_dt.__url__=pytils.templatetags.pytils_dt-module.html#__url__,Variable pytils.templatetags.pytils_numeral.__url__=pytils.templatetags.pytils_numeral-module.html#__url__,Variable pytils.templatetags.pytils_translit.__url__=pytils.templatetags.pytils_translit-module.html#__url__,Variable pytils.test.__url__=pytils.test-module.html#__url__,Variable pytils.test.test_dt.__url__=pytils.test.test_dt-module.html#__url__,Variable pytils.test.test_numeral.__url__=pytils.test.test_numeral-module.html#__url__,Variable pytils.test.test_translit.__url__=pytils.test.test_translit-module.html#__url__,Variable pytils.test.test_utils.__url__=pytils.test.test_utils-module.html#__url__,Variable pytils.translit.__url__=pytils.translit-module.html#__url__,Variable pytils.utils.__url__=pytils.utils-module.html#__url__'); return false;">__url__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$URL: https://pythy.googlecode.com/svn/trunk/pytils/pytils/test/test_numeral.py $"</span> </span>
<span class="py-lineno"> 10</span>  <span class="py-line"> </span>
<span class="py-lineno"> 11</span>  <span class="py-line"><span class="py-keyword">import</span> <span class="py-name">unittest</span> </span>
<span class="py-lineno"> 12</span>  <span class="py-line"><span class="py-keyword">import</span> <span id="link-3" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-3', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span> </span>
<span class="py-lineno"> 13</span>  <span class="py-line"> </span>
<a name="ChoosePluralTestCase"></a><div id="ChoosePluralTestCase-def"><span class="py-lineno"> 14</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase-toggle" onclick="toggle('ChoosePluralTestCase'); return false;">-</a><span class="py-line"><span class="py-keyword">class</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html">ChoosePluralTestCase</a><span class="py-op">(</span><span class="py-base-class">unittest</span><span class="py-op">.</span><span class="py-base-class">TestCase</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChoosePluralTestCase-expanded"><span class="py-lineno"> 15</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 16</span>  <span class="py-line"><span class="py-docstring">    Test case for pytils.numeral.choose_plural</span> </span>
<span class="py-lineno"> 17</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno"> 18</span>  <span class="py-line"> </span>
<a name="ChoosePluralTestCase.setUp"></a><div id="ChoosePluralTestCase.setUp-def"><span class="py-lineno"> 19</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase.setUp-toggle" onclick="toggle('ChoosePluralTestCase.setUp'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html#setUp">setUp</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase.setUp-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChoosePluralTestCase.setUp-expanded"><span class="py-lineno"> 20</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 21</span>  <span class="py-line"><span class="py-docstring">        Setting up environment for tests</span> </span>
<span class="py-lineno"> 22</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno"> 23</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants</span> <span class="py-op">=</span> <span class="py-op">(</span><span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1100;"</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1103;"</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno"> 24</span>  <span class="py-line"> </span>
<a name="ChoosePluralTestCase.checkChoosePlural"></a><div id="ChoosePluralTestCase.checkChoosePlural-def"><span class="py-lineno"> 25</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase.checkChoosePlural-toggle" onclick="toggle('ChoosePluralTestCase.checkChoosePlural'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural">checkChoosePlural</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">,</span> <span class="py-param">amount</span><span class="py-op">,</span> <span class="py-param">estimated</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase.checkChoosePlural-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChoosePluralTestCase.checkChoosePlural-expanded"><span class="py-lineno"> 26</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 27</span>  <span class="py-line"><span class="py-docstring">        Checks choose_plural</span> </span>
<span class="py-lineno"> 28</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno"> 29</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-4" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-4', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-5" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-5', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-6" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-6', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">(</span><span class="py-name">amount</span><span class="py-op">,</span> <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 30</span>  <span class="py-line">                          <span class="py-name">estimated</span><span class="py-op">)</span> </span>
</div><span class="py-lineno"> 31</span>  <span class="py-line">     </span>
<a name="ChoosePluralTestCase.testChoosePlural"></a><div id="ChoosePluralTestCase.testChoosePlural-def"><span class="py-lineno"> 32</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase.testChoosePlural-toggle" onclick="toggle('ChoosePluralTestCase.testChoosePlural'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html#testChoosePlural">testChoosePlural</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase.testChoosePlural-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChoosePluralTestCase.testChoosePlural-expanded"><span class="py-lineno"> 33</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 34</span>  <span class="py-line"><span class="py-docstring">        Unit-test for choose_plural</span> </span>
<span class="py-lineno"> 35</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno"> 36</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-7" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-7', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">1</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 37</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-8" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-8', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">2</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 38</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-9" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-9', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">3</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 39</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-10" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-10', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">5</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 40</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-11" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-11', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">11</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 41</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-12" class="py-name"><a title="pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural" class="py-name" href="#" onclick="doclink('link-12', 'checkChoosePlural', 'Method pytils.test.test_numeral.ChoosePluralTestCase.checkChoosePlural()=pytils.test.test_numeral.ChoosePluralTestCase-class.html#checkChoosePlural'); return false;">checkChoosePlural</a></span></span><span class="py-op">(</span><span class="py-number">109</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno"> 42</span>  <span class="py-line"> </span>
<a name="ChoosePluralTestCase.testChoosePluralExceptions"></a><div id="ChoosePluralTestCase.testChoosePluralExceptions-def"><span class="py-lineno"> 43</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase.testChoosePluralExceptions-toggle" onclick="toggle('ChoosePluralTestCase.testChoosePluralExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html#testChoosePluralExceptions">testChoosePluralExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase.testChoosePluralExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChoosePluralTestCase.testChoosePluralExceptions-expanded"><span class="py-lineno"> 44</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 45</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing choos_plural's exceptions</span> </span>
<span class="py-lineno"> 46</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno"> 47</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-13" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-13', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-14" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-14', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-15" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-15', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 48</span>  <span class="py-line">                          <span class="py-string">"25"</span><span class="py-op">,</span> <span class="py-string">u"any,bene,raba"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 49</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-16" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-16', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-17" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-17', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-18" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-18', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 50</span>  <span class="py-line">                          <span class="py-number">25</span><span class="py-op">,</span> <span class="py-number">30</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 51</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-19" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-19', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-20" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-20', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-21" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-21', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 52</span>  <span class="py-line">                          <span class="py-number">25</span><span class="py-op">,</span> <span class="py-string">u"any,bene"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 53</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-22" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-22', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-23" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-23', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-24" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-24', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 54</span>  <span class="py-line">                          <span class="py-op">-</span><span class="py-number">25</span><span class="py-op">,</span> <span class="py-string">u"any,bene,raba"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno"> 55</span>  <span class="py-line"> </span>
<a name="ChoosePluralTestCase.testChoosePluralVariantsInStr"></a><div id="ChoosePluralTestCase.testChoosePluralVariantsInStr-def"><span class="py-lineno"> 56</span> <a class="py-toggle" href="#" id="ChoosePluralTestCase.testChoosePluralVariantsInStr-toggle" onclick="toggle('ChoosePluralTestCase.testChoosePluralVariantsInStr'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.ChoosePluralTestCase-class.html#testChoosePluralVariantsInStr">testChoosePluralVariantsInStr</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ChoosePluralTestCase.testChoosePluralVariantsInStr-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChoosePluralTestCase.testChoosePluralVariantsInStr-expanded"><span class="py-lineno"> 57</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span> </span>
<span class="py-lineno"> 58</span>  <span class="py-line">            <span id="link-25" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-25', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-26" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-26', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-27" class="py-name"><a title="pytils.numeral.choose_plural
pytils.templatetags.pytils_numeral.choose_plural" class="py-name" href="#" onclick="doclink('link-27', 'choose_plural', 'Function pytils.numeral.choose_plural()=pytils.numeral-module.html#choose_plural,Function pytils.templatetags.pytils_numeral.choose_plural()=pytils.templatetags.pytils_numeral-module.html#choose_plural'); return false;">choose_plural</a></span></span><span class="py-op">(</span><span class="py-number">1</span><span class="py-op">,</span><span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1100;,&#1075;&#1074;&#1086;&#1079;&#1076;&#1103;, &#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 59</span>  <span class="py-line">            <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1100;"</span><span class="py-op">)</span> </span>
</div></div><span class="py-lineno"> 60</span>  <span class="py-line"> </span>
<a name="GetFloatRemainderTestCase"></a><div id="GetFloatRemainderTestCase-def"><span class="py-lineno"> 61</span> <a class="py-toggle" href="#" id="GetFloatRemainderTestCase-toggle" onclick="toggle('GetFloatRemainderTestCase'); return false;">-</a><span class="py-line"><span class="py-keyword">class</span> <a class="py-def-name" href="pytils.test.test_numeral.GetFloatRemainderTestCase-class.html">GetFloatRemainderTestCase</a><span class="py-op">(</span><span class="py-base-class">unittest</span><span class="py-op">.</span><span class="py-base-class">TestCase</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="GetFloatRemainderTestCase-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="GetFloatRemainderTestCase-expanded"><span class="py-lineno"> 62</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 63</span>  <span class="py-line"><span class="py-docstring">    Test case for pytils.numeral._get_float_remainder</span> </span>
<span class="py-lineno"> 64</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno"> 65</span>  <span class="py-line"> </span>
<a name="GetFloatRemainderTestCase.testFloatRemainder"></a><div id="GetFloatRemainderTestCase.testFloatRemainder-def"><span class="py-lineno"> 66</span> <a class="py-toggle" href="#" id="GetFloatRemainderTestCase.testFloatRemainder-toggle" onclick="toggle('GetFloatRemainderTestCase.testFloatRemainder'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.GetFloatRemainderTestCase-class.html#testFloatRemainder">testFloatRemainder</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="GetFloatRemainderTestCase.testFloatRemainder-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GetFloatRemainderTestCase.testFloatRemainder-expanded"><span class="py-lineno"> 67</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 68</span>  <span class="py-line"><span class="py-docstring">        Unit-test for _get_float_remainder</span> </span>
<span class="py-lineno"> 69</span>  <span class="py-line"><span class="py-docstring">        """</span>         </span>
<span class="py-lineno"> 70</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-28" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-28', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-29" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-29', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-30" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-30', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">1.3</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 71</span>  <span class="py-line">                          <span class="py-string">'3'</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 72</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-31" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-31', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-32" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-32', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-33" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-33', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">2.35</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 73</span>  <span class="py-line">                          <span class="py-string">'4'</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 74</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-34" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-34', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-35" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-35', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-36" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-36', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">123.1234567891</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 75</span>  <span class="py-line">                          <span class="py-string">'123456789'</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 76</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-37" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-37', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-38" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-38', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-39" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-39', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">2.353</span><span class="py-op">,</span> <span class="py-number">2</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 77</span>  <span class="py-line">                          <span class="py-string">'35'</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 78</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-40" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-40', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-41" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-41', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-42" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-42', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">0.01</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 79</span>  <span class="py-line">                          <span class="py-string">'01'</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 80</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-43" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-43', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-44" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-44', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-45" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-45', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">(</span><span class="py-number">5</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 81</span>  <span class="py-line">                          <span class="py-string">'0'</span><span class="py-op">)</span> </span>
</div><span class="py-lineno"> 82</span>  <span class="py-line"> </span>
<a name="GetFloatRemainderTestCase.testFloatRemainderExceptions"></a><div id="GetFloatRemainderTestCase.testFloatRemainderExceptions-def"><span class="py-lineno"> 83</span> <a class="py-toggle" href="#" id="GetFloatRemainderTestCase.testFloatRemainderExceptions-toggle" onclick="toggle('GetFloatRemainderTestCase.testFloatRemainderExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.GetFloatRemainderTestCase-class.html#testFloatRemainderExceptions">testFloatRemainderExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="GetFloatRemainderTestCase.testFloatRemainderExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="GetFloatRemainderTestCase.testFloatRemainderExceptions-expanded"><span class="py-lineno"> 84</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 85</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing _get_float_remainder's exceptions</span> </span>
<span class="py-lineno"> 86</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno"> 87</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-46" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-46', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-47" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-47', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-48" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-48', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 88</span>  <span class="py-line">                          <span class="py-number">2.998</span><span class="py-op">,</span> <span class="py-number">2</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 89</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-49" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-49', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-50" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-50', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-51" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-51', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">,</span> <span class="py-string">"1.23"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 90</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-52" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-52', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-53" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-53', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-54" class="py-name"><a title="pytils.numeral._get_float_remainder" class="py-name" href="#" onclick="doclink('link-54', '_get_float_remainder', 'Function pytils.numeral._get_float_remainder()=pytils.numeral-module.html#_get_float_remainder'); return false;">_get_float_remainder</a></span></span><span class="py-op">,</span> <span class="py-op">-</span><span class="py-number">1.23</span><span class="py-op">)</span> </span>
</div></div><span class="py-lineno"> 91</span>  <span class="py-line"> </span>
<a name="RublesTestCase"></a><div id="RublesTestCase-def"><span class="py-lineno"> 92</span> <a class="py-toggle" href="#" id="RublesTestCase-toggle" onclick="toggle('RublesTestCase'); return false;">-</a><span class="py-line"><span class="py-keyword">class</span> <a class="py-def-name" href="pytils.test.test_numeral.RublesTestCase-class.html">RublesTestCase</a><span class="py-op">(</span><span class="py-base-class">unittest</span><span class="py-op">.</span><span class="py-base-class">TestCase</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="RublesTestCase-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="RublesTestCase-expanded"><span class="py-lineno"> 93</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 94</span>  <span class="py-line"><span class="py-docstring">    Test case for pytils.numeral.rubles</span> </span>
<span class="py-lineno"> 95</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno"> 96</span>  <span class="py-line"> </span>
<a name="RublesTestCase.testRubles"></a><div id="RublesTestCase.testRubles-def"><span class="py-lineno"> 97</span> <a class="py-toggle" href="#" id="RublesTestCase.testRubles-toggle" onclick="toggle('RublesTestCase.testRubles'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.RublesTestCase-class.html#testRubles">testRubles</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="RublesTestCase.testRubles-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="RublesTestCase.testRubles-expanded"><span class="py-lineno"> 98</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 99</span>  <span class="py-line"><span class="py-docstring">        Unit-test for rubles</span> </span>
<span class="py-lineno">100</span>  <span class="py-line"><span class="py-docstring">        """</span>         </span>
<span class="py-lineno">101</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-55" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-55', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-56" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-56', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-57" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-57', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">10.01</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">102</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1088;&#1091;&#1073;&#1083;&#1077;&#1081; &#1086;&#1076;&#1085;&#1072; &#1082;&#1086;&#1087;&#1077;&#1081;&#1082;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">103</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-58" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-58', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-59" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-59', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-60" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-60', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">10.10</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">104</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1088;&#1091;&#1073;&#1083;&#1077;&#1081; &#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1082;&#1086;&#1087;&#1077;&#1077;&#1082;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">105</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-61" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-61', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-62" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-62', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-63" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-63', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">2.353</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">106</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072; &#1088;&#1091;&#1073;&#1083;&#1103; &#1090;&#1088;&#1080;&#1076;&#1094;&#1072;&#1090;&#1100; &#1087;&#1103;&#1090;&#1100; &#1082;&#1086;&#1087;&#1077;&#1077;&#1082;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">107</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-64" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-64', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-65" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-65', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-66" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-66', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">2.998</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">108</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1088;&#1091;&#1073;&#1083;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">109</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-67" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-67', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-68" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-68', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-69" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-69', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">3</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">110</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1088;&#1091;&#1073;&#1083;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">111</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-70" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-70', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-71" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-71', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-72" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-72', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">(</span><span class="py-number">3</span><span class="py-op">,</span> <span class="py-name">True</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">112</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1088;&#1091;&#1073;&#1083;&#1103; &#1085;&#1086;&#1083;&#1100; &#1082;&#1086;&#1087;&#1077;&#1077;&#1082;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">113</span>  <span class="py-line"> </span>
<a name="RublesTestCase.testRublesExceptions"></a><div id="RublesTestCase.testRublesExceptions-def"><span class="py-lineno">114</span> <a class="py-toggle" href="#" id="RublesTestCase.testRublesExceptions-toggle" onclick="toggle('RublesTestCase.testRublesExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.RublesTestCase-class.html#testRublesExceptions">testRublesExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="RublesTestCase.testRublesExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="RublesTestCase.testRublesExceptions-expanded"><span class="py-lineno">115</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">116</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing rubles' exceptions</span> </span>
<span class="py-lineno">117</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">118</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-73" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-73', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-74" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-74', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-75" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-75', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">,</span> <span class="py-string">"3"</span><span class="py-op">)</span> </span>
<span class="py-lineno">119</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-76" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-76', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-77" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-77', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-78" class="py-name"><a title="pytils.numeral.rubles
pytils.templatetags.pytils_numeral.rubles" class="py-name" href="#" onclick="doclink('link-78', 'rubles', 'Function pytils.numeral.rubles()=pytils.numeral-module.html#rubles,Function pytils.templatetags.pytils_numeral.rubles()=pytils.templatetags.pytils_numeral-module.html#rubles'); return false;">rubles</a></span></span><span class="py-op">,</span> <span class="py-op">-</span><span class="py-number">15</span><span class="py-op">)</span> </span>
</div></div><span class="py-lineno">120</span>  <span class="py-line">         </span>
<span class="py-lineno">121</span>  <span class="py-line"> </span>
<a name="InWordsTestCase"></a><div id="InWordsTestCase-def"><span class="py-lineno">122</span> <a class="py-toggle" href="#" id="InWordsTestCase-toggle" onclick="toggle('InWordsTestCase'); return false;">-</a><span class="py-line"><span class="py-keyword">class</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html">InWordsTestCase</a><span class="py-op">(</span><span class="py-base-class">unittest</span><span class="py-op">.</span><span class="py-base-class">TestCase</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="InWordsTestCase-expanded"><span class="py-lineno">123</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno">124</span>  <span class="py-line"><span class="py-docstring">    Test case for pytils.numeral.in_words</span> </span>
<span class="py-lineno">125</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno">126</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testInt"></a><div id="InWordsTestCase.testInt-def"><span class="py-lineno">127</span> <a class="py-toggle" href="#" id="InWordsTestCase.testInt-toggle" onclick="toggle('InWordsTestCase.testInt'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testInt">testInt</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testInt-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testInt-expanded"><span class="py-lineno">128</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">129</span>  <span class="py-line"><span class="py-docstring">        Unit-test for in_words_int</span> </span>
<span class="py-lineno">130</span>  <span class="py-line"><span class="py-docstring">        """</span>                 </span>
<span class="py-lineno">131</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-79" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-79', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-80" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-80', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-81" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-81', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">10</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">132</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-82" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-82', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-83" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-83', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-84" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-84', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">5</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1087;&#1103;&#1090;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">133</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-85" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-85', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-86" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-86', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-87" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-87', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">102</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1089;&#1090;&#1086; &#1076;&#1074;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">134</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-88" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-88', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-89" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-89', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-90" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-90', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">3521</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">135</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1090;&#1099;&#1089;&#1103;&#1095;&#1080; &#1087;&#1103;&#1090;&#1100;&#1089;&#1086;&#1090; &#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1080;&#1085;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">136</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-91" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-91', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-92" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-92', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-93" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-93', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">3500</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">137</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1090;&#1099;&#1089;&#1103;&#1095;&#1080; &#1087;&#1103;&#1090;&#1100;&#1089;&#1086;&#1090;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">138</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-94" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-94', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-95" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-95', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-96" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-96', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">(</span><span class="py-number">5231000</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">139</span>  <span class="py-line">                          <span class="py-string">u"&#1087;&#1103;&#1090;&#1100; &#1084;&#1080;&#1083;&#1083;&#1080;&#1086;&#1085;&#1086;&#1074; &#1076;&#1074;&#1077;&#1089;&#1090;&#1080; &#1090;&#1088;&#1080;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1090;&#1099;&#1089;&#1103;&#1095;&#1072;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">140</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testIntExceptions"></a><div id="InWordsTestCase.testIntExceptions-def"><span class="py-lineno">141</span> <a class="py-toggle" href="#" id="InWordsTestCase.testIntExceptions-toggle" onclick="toggle('InWordsTestCase.testIntExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testIntExceptions">testIntExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testIntExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testIntExceptions-expanded"><span class="py-lineno">142</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">143</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing in_words_int's exceptions</span> </span>
<span class="py-lineno">144</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">145</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-97" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-97', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-98" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-98', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-99" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-99', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">,</span> <span class="py-number">2.5</span><span class="py-op">)</span> </span>
<span class="py-lineno">146</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-100" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-100', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-101" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-101', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-102" class="py-name"><a title="pytils.numeral.in_words_int" class="py-name" href="#" onclick="doclink('link-102', 'in_words_int', 'Function pytils.numeral.in_words_int()=pytils.numeral-module.html#in_words_int'); return false;">in_words_int</a></span></span><span class="py-op">,</span> <span class="py-op">-</span><span class="py-number">3</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">147</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testFloat"></a><div id="InWordsTestCase.testFloat-def"><span class="py-lineno">148</span> <a class="py-toggle" href="#" id="InWordsTestCase.testFloat-toggle" onclick="toggle('InWordsTestCase.testFloat'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testFloat">testFloat</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testFloat-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testFloat-expanded"><span class="py-lineno">149</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">150</span>  <span class="py-line"><span class="py-docstring">        Unit-test for in_words_float</span> </span>
<span class="py-lineno">151</span>  <span class="py-line"><span class="py-docstring">        """</span>                 </span>
<span class="py-lineno">152</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-103" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-103', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-104" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-104', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-105" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-105', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">(</span><span class="py-number">10.0</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">153</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1085;&#1086;&#1083;&#1100; &#1076;&#1077;&#1089;&#1103;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">154</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-106" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-106', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-107" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-107', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-108" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-108', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">(</span><span class="py-number">2.25</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">155</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1077; &#1094;&#1077;&#1083;&#1099;&#1093; &#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1087;&#1103;&#1090;&#1100; &#1089;&#1086;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">156</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-109" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-109', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-110" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-110', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-111" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-111', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">(</span><span class="py-number">0.01</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">157</span>  <span class="py-line">                          <span class="py-string">u"&#1085;&#1086;&#1083;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1086;&#1076;&#1085;&#1072; &#1089;&#1086;&#1090;&#1072;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">158</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-112" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-112', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-113" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-113', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-114" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-114', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">(</span><span class="py-number">0.10</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">159</span>  <span class="py-line">                          <span class="py-string">u"&#1085;&#1086;&#1083;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1086;&#1076;&#1085;&#1072; &#1076;&#1077;&#1089;&#1103;&#1090;&#1072;&#1103;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">160</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testFloatExceptions"></a><div id="InWordsTestCase.testFloatExceptions-def"><span class="py-lineno">161</span> <a class="py-toggle" href="#" id="InWordsTestCase.testFloatExceptions-toggle" onclick="toggle('InWordsTestCase.testFloatExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testFloatExceptions">testFloatExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testFloatExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testFloatExceptions-expanded"><span class="py-lineno">162</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">163</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing in_words_float's exceptions</span> </span>
<span class="py-lineno">164</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">165</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-115" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-115', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-116" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-116', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-117" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-117', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">,</span> <span class="py-string">'2'</span><span class="py-op">)</span> </span>
<span class="py-lineno">166</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-118" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-118', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-119" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-119', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-120" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-120', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">,</span> <span class="py-number">2</span><span class="py-op">)</span> </span>
<span class="py-lineno">167</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-121" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-121', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-122" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-122', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-123" class="py-name"><a title="pytils.numeral.in_words_float" class="py-name" href="#" onclick="doclink('link-123', 'in_words_float', 'Function pytils.numeral.in_words_float()=pytils.numeral-module.html#in_words_float'); return false;">in_words_float</a></span></span><span class="py-op">,</span> <span class="py-op">-</span><span class="py-number">2.3</span><span class="py-op">)</span>         </span>
</div><span class="py-lineno">168</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testWithGender"></a><div id="InWordsTestCase.testWithGender-def"><span class="py-lineno">169</span> <a class="py-toggle" href="#" id="InWordsTestCase.testWithGender-toggle" onclick="toggle('InWordsTestCase.testWithGender'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testWithGender">testWithGender</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testWithGender-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testWithGender-expanded"><span class="py-lineno">170</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">171</span>  <span class="py-line"><span class="py-docstring">        Unit-test for in_words_float with gender</span> </span>
<span class="py-lineno">172</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">173</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-124" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-124', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-125" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-125', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-126" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-126', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">174</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1080;&#1085;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">175</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-127" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-127', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-128" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-128', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-129" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-129', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21</span><span class="py-op">,</span> <span class="py-number">2</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">176</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">177</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-130" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-130', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-131" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-131', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-132" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-132', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21</span><span class="py-op">,</span> <span class="py-number">3</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">178</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1086;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">179</span>  <span class="py-line">        <span class="py-comment"># &#1085;&#1072; &#1076;&#1088;&#1086;&#1073;&#1085;&#1099;&#1077; &#1087;&#1086;&#1083; &#1085;&#1077; &#1076;&#1086;&#1083;&#1078;&#1077;&#1085; &#1074;&#1083;&#1080;&#1103;&#1090;&#1100; - &#1074;&#1089;&#1077;&#1075;&#1076;&#1072; &#1074; &#1078;&#1077;&#1085;&#1089;&#1082;&#1086;&#1084; &#1088;&#1086;&#1076;&#1077;</span> </span>
<span class="py-lineno">180</span>  <span class="py-line"><span class="py-comment"></span>        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-133" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-133', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-134" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-134', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-135" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-135', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21.0</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">181</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1094;&#1077;&#1083;&#1072;&#1103; &#1085;&#1086;&#1083;&#1100; &#1076;&#1077;&#1089;&#1103;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">182</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-136" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-136', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-137" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-137', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-138" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-138', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21.0</span><span class="py-op">,</span> <span class="py-number">2</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">183</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1094;&#1077;&#1083;&#1072;&#1103; &#1085;&#1086;&#1083;&#1100; &#1076;&#1077;&#1089;&#1103;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">184</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-139" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-139', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-140" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-140', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-141" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-141', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">21.0</span><span class="py-op">,</span> <span class="py-number">3</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">185</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1094;&#1077;&#1083;&#1072;&#1103; &#1085;&#1086;&#1083;&#1100; &#1076;&#1077;&#1089;&#1103;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">186</span>  <span class="py-line">         </span>
<a name="InWordsTestCase.testCommon"></a><div id="InWordsTestCase.testCommon-def"><span class="py-lineno">187</span> <a class="py-toggle" href="#" id="InWordsTestCase.testCommon-toggle" onclick="toggle('InWordsTestCase.testCommon'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testCommon">testCommon</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testCommon-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testCommon-expanded"><span class="py-lineno">188</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">189</span>  <span class="py-line"><span class="py-docstring">        Unit-test for general in_words</span> </span>
<span class="py-lineno">190</span>  <span class="py-line"><span class="py-docstring">        """</span>                 </span>
<span class="py-lineno">191</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-142" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-142', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-143" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-143', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-144" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-144', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">10</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">192</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-145" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-145', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-146" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-146', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-147" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-147', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">5</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1087;&#1103;&#1090;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">193</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-148" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-148', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-149" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-149', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-150" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-150', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">102</span><span class="py-op">)</span><span class="py-op">,</span> <span class="py-string">u"&#1089;&#1090;&#1086; &#1076;&#1074;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">194</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-151" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-151', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-152" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-152', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-153" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-153', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">3521</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">195</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1090;&#1099;&#1089;&#1103;&#1095;&#1080; &#1087;&#1103;&#1090;&#1100;&#1089;&#1086;&#1090; &#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1080;&#1085;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">196</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-154" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-154', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-155" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-155', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-156" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-156', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">3500</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">197</span>  <span class="py-line">                          <span class="py-string">u"&#1090;&#1088;&#1080; &#1090;&#1099;&#1089;&#1103;&#1095;&#1080; &#1087;&#1103;&#1090;&#1100;&#1089;&#1086;&#1090;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">198</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-157" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-157', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-158" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-158', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-159" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-159', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">5231000</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">199</span>  <span class="py-line">                          <span class="py-string">u"&#1087;&#1103;&#1090;&#1100; &#1084;&#1080;&#1083;&#1083;&#1080;&#1086;&#1085;&#1086;&#1074; &#1076;&#1074;&#1077;&#1089;&#1090;&#1080; &#1090;&#1088;&#1080;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1090;&#1099;&#1089;&#1103;&#1095;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">200</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-160" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-160', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-161" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-161', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-162" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-162', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">10.0</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">201</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1085;&#1086;&#1083;&#1100; &#1076;&#1077;&#1089;&#1103;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">202</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-163" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-163', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-164" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-164', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-165" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-165', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">2.25</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">203</span>  <span class="py-line">                          <span class="py-string">u"&#1076;&#1074;&#1077; &#1094;&#1077;&#1083;&#1099;&#1093; &#1076;&#1074;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1087;&#1103;&#1090;&#1100; &#1089;&#1086;&#1090;&#1099;&#1093;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">204</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-166" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-166', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-167" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-167', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-168" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-168', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">0.01</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">205</span>  <span class="py-line">                          <span class="py-string">u"&#1085;&#1086;&#1083;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1086;&#1076;&#1085;&#1072; &#1089;&#1086;&#1090;&#1072;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">206</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-169" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-169', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-170" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-170', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-171" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-171', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">(</span><span class="py-number">0.10</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">207</span>  <span class="py-line">                          <span class="py-string">u"&#1085;&#1086;&#1083;&#1100; &#1094;&#1077;&#1083;&#1099;&#1093; &#1086;&#1076;&#1085;&#1072; &#1076;&#1077;&#1089;&#1103;&#1090;&#1072;&#1103;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">208</span>  <span class="py-line"> </span>
<a name="InWordsTestCase.testCommonExceptions"></a><div id="InWordsTestCase.testCommonExceptions-def"><span class="py-lineno">209</span> <a class="py-toggle" href="#" id="InWordsTestCase.testCommonExceptions-toggle" onclick="toggle('InWordsTestCase.testCommonExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.InWordsTestCase-class.html#testCommonExceptions">testCommonExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="InWordsTestCase.testCommonExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="InWordsTestCase.testCommonExceptions-expanded"><span class="py-lineno">210</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">211</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing in_words' exceptions</span> </span>
<span class="py-lineno">212</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">213</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-172" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-172', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-173" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-173', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-174" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-174', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">,</span> <span class="py-string">"0.2"</span><span class="py-op">)</span> </span>
<span class="py-lineno">214</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-175" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-175', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-176" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-176', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-177" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-177', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">,</span> <span class="py-number">0.2</span><span class="py-op">,</span> <span class="py-string">"1"</span><span class="py-op">)</span> </span>
<span class="py-lineno">215</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-178" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-178', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-179" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-179', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-180" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-180', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">,</span> <span class="py-number">0.2</span><span class="py-op">,</span> <span class="py-number">5</span><span class="py-op">)</span> </span>
<span class="py-lineno">216</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-181" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-181', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-182" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-182', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-183" class="py-name"><a title="pytils.numeral.in_words
pytils.templatetags.pytils_numeral.in_words" class="py-name" href="#" onclick="doclink('link-183', 'in_words', 'Function pytils.numeral.in_words()=pytils.numeral-module.html#in_words,Function pytils.templatetags.pytils_numeral.in_words()=pytils.templatetags.pytils_numeral-module.html#in_words'); return false;">in_words</a></span></span><span class="py-op">,</span> <span class="py-op">-</span><span class="py-number">2</span><span class="py-op">)</span> </span>
</div></div><span class="py-lineno">217</span>  <span class="py-line">         </span>
<span class="py-lineno">218</span>  <span class="py-line"> </span>
<a name="SumStringTestCase"></a><div id="SumStringTestCase-def"><span class="py-lineno">219</span> <a class="py-toggle" href="#" id="SumStringTestCase-toggle" onclick="toggle('SumStringTestCase'); return false;">-</a><span class="py-line"><span class="py-keyword">class</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html">SumStringTestCase</a><span class="py-op">(</span><span class="py-base-class">unittest</span><span class="py-op">.</span><span class="py-base-class">TestCase</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SumStringTestCase-expanded"><span class="py-lineno">220</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno">221</span>  <span class="py-line"><span class="py-docstring">    Test case for pytils.numeral.sum_string</span> </span>
<span class="py-lineno">222</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno">223</span>  <span class="py-line">     </span>
<a name="SumStringTestCase.setUp"></a><div id="SumStringTestCase.setUp-def"><span class="py-lineno">224</span> <a class="py-toggle" href="#" id="SumStringTestCase.setUp-toggle" onclick="toggle('SumStringTestCase.setUp'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html#setUp">setUp</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase.setUp-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SumStringTestCase.setUp-expanded"><span class="py-lineno">225</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">226</span>  <span class="py-line"><span class="py-docstring">        Setting up environment for tests</span> </span>
<span class="py-lineno">227</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">228</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants_male</span> <span class="py-op">=</span> <span class="py-op">(</span><span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1100;"</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1103;"</span><span class="py-op">,</span> <span class="py-string">u"&#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">229</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants_female</span> <span class="py-op">=</span> <span class="py-op">(</span><span class="py-string">u"&#1096;&#1083;&#1103;&#1087;&#1082;&#1072;"</span><span class="py-op">,</span> <span class="py-string">u"&#1096;&#1083;&#1103;&#1087;&#1082;&#1080;"</span><span class="py-op">,</span> <span class="py-string">u"&#1096;&#1083;&#1103;&#1087;&#1086;&#1082;"</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">230</span>  <span class="py-line"> </span>
<a name="SumStringTestCase.ckMale"></a><div id="SumStringTestCase.ckMale-def"><span class="py-lineno">231</span> <a class="py-toggle" href="#" id="SumStringTestCase.ckMale-toggle" onclick="toggle('SumStringTestCase.ckMale'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html#ckMale">ckMale</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">,</span> <span class="py-param">amount</span><span class="py-op">,</span> <span class="py-param">estimated</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase.ckMale-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SumStringTestCase.ckMale-expanded"><span class="py-lineno">232</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">233</span>  <span class="py-line"><span class="py-docstring">        Checks sum_string with male gender</span> </span>
<span class="py-lineno">234</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">235</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-184" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-184', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-185" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-185', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-186" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-186', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">(</span><span class="py-name">amount</span><span class="py-op">,</span> </span>
<span class="py-lineno">236</span>  <span class="py-line">                                                    <span class="py-number">1</span><span class="py-op">,</span> </span>
<span class="py-lineno">237</span>  <span class="py-line">                                                    <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants_male</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">238</span>  <span class="py-line">                          <span class="py-name">estimated</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">239</span>  <span class="py-line"> </span>
<a name="SumStringTestCase.ckFemale"></a><div id="SumStringTestCase.ckFemale-def"><span class="py-lineno">240</span> <a class="py-toggle" href="#" id="SumStringTestCase.ckFemale-toggle" onclick="toggle('SumStringTestCase.ckFemale'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html#ckFemale">ckFemale</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">,</span> <span class="py-param">amount</span><span class="py-op">,</span> <span class="py-param">estimated</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase.ckFemale-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SumStringTestCase.ckFemale-expanded"><span class="py-lineno">241</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">242</span>  <span class="py-line"><span class="py-docstring">        Checks sum_string with female gender</span> </span>
<span class="py-lineno">243</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">244</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span id="link-187" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-187', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-188" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-188', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-189" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-189', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">(</span><span class="py-name">amount</span><span class="py-op">,</span> </span>
<span class="py-lineno">245</span>  <span class="py-line">                                                    <span class="py-number">2</span><span class="py-op">,</span> </span>
<span class="py-lineno">246</span>  <span class="py-line">                                                    <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">variants_female</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno">247</span>  <span class="py-line">                          <span class="py-name">estimated</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">248</span>  <span class="py-line"> </span>
<a name="SumStringTestCase.testSumString"></a><div id="SumStringTestCase.testSumString-def"><span class="py-lineno">249</span> <a class="py-toggle" href="#" id="SumStringTestCase.testSumString-toggle" onclick="toggle('SumStringTestCase.testSumString'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html#testSumString">testSumString</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase.testSumString-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SumStringTestCase.testSumString-expanded"><span class="py-lineno">250</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">251</span>  <span class="py-line"><span class="py-docstring">        Unit-test for sum_string</span> </span>
<span class="py-lineno">252</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">253</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-190" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckMale" class="py-name" href="#" onclick="doclink('link-190', 'ckMale', 'Method pytils.test.test_numeral.SumStringTestCase.ckMale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckMale'); return false;">ckMale</a></span></span><span class="py-op">(</span><span class="py-number">10</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1075;&#1074;&#1086;&#1079;&#1076;&#1077;&#1081;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">254</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-191" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckMale" class="py-name" href="#" onclick="doclink('link-191', 'ckMale', 'Method pytils.test.test_numeral.SumStringTestCase.ckMale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckMale'); return false;">ckMale</a></span></span><span class="py-op">(</span><span class="py-number">2</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1074;&#1072; &#1075;&#1074;&#1086;&#1079;&#1076;&#1103;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">255</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-192" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckMale" class="py-name" href="#" onclick="doclink('link-192', 'ckMale', 'Method pytils.test.test_numeral.SumStringTestCase.ckMale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckMale'); return false;">ckMale</a></span></span><span class="py-op">(</span><span class="py-number">31</span><span class="py-op">,</span> <span class="py-string">u"&#1090;&#1088;&#1080;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1080;&#1085; &#1075;&#1074;&#1086;&#1079;&#1076;&#1100;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">256</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-193" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckFemale" class="py-name" href="#" onclick="doclink('link-193', 'ckFemale', 'Method pytils.test.test_numeral.SumStringTestCase.ckFemale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckFemale'); return false;">ckFemale</a></span></span><span class="py-op">(</span><span class="py-number">10</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1077;&#1089;&#1103;&#1090;&#1100; &#1096;&#1083;&#1103;&#1087;&#1086;&#1082;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">257</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-194" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckFemale" class="py-name" href="#" onclick="doclink('link-194', 'ckFemale', 'Method pytils.test.test_numeral.SumStringTestCase.ckFemale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckFemale'); return false;">ckFemale</a></span></span><span class="py-op">(</span><span class="py-number">2</span><span class="py-op">,</span> <span class="py-string">u"&#1076;&#1074;&#1077; &#1096;&#1083;&#1103;&#1087;&#1082;&#1080;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">258</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span id="link-195" class="py-name"><a title="pytils.test.test_numeral.SumStringTestCase.ckFemale" class="py-name" href="#" onclick="doclink('link-195', 'ckFemale', 'Method pytils.test.test_numeral.SumStringTestCase.ckFemale()=pytils.test.test_numeral.SumStringTestCase-class.html#ckFemale'); return false;">ckFemale</a></span></span><span class="py-op">(</span><span class="py-number">31</span><span class="py-op">,</span> <span class="py-string">u"&#1090;&#1088;&#1080;&#1076;&#1094;&#1072;&#1090;&#1100; &#1086;&#1076;&#1085;&#1072; &#1096;&#1083;&#1103;&#1087;&#1082;&#1072;"</span><span class="py-op">)</span> </span>
<span class="py-lineno">259</span>  <span class="py-line"> </span>
<span class="py-lineno">260</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertEquals</span><span class="py-op">(</span><span class="py-string">u"&#1086;&#1076;&#1080;&#1085;&#1085;&#1072;&#1076;&#1094;&#1072;&#1090;&#1100; &#1085;&#1077;&#1075;&#1088;&#1080;&#1090;&#1103;&#1090;"</span><span class="py-op">,</span> </span>
<span class="py-lineno">261</span>  <span class="py-line">                          <span id="link-196" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-196', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-197" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-197', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-198" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-198', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">(</span> </span>
<span class="py-lineno">262</span>  <span class="py-line">                              <span class="py-number">11</span><span class="py-op">,</span> </span>
<span class="py-lineno">263</span>  <span class="py-line">                              <span class="py-number">1</span><span class="py-op">,</span> </span>
<span class="py-lineno">264</span>  <span class="py-line">                              <span class="py-string">u"&#1085;&#1077;&#1075;&#1088;&#1080;&#1090;&#1077;&#1085;&#1086;&#1082;,&#1085;&#1077;&#1075;&#1088;&#1080;&#1090;&#1077;&#1085;&#1082;&#1072;,&#1085;&#1077;&#1075;&#1088;&#1080;&#1090;&#1103;&#1090;"</span> </span>
<span class="py-lineno">265</span>  <span class="py-line">                              <span class="py-op">)</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">266</span>  <span class="py-line"> </span>
<a name="SumStringTestCase.testSumStringExceptions"></a><div id="SumStringTestCase.testSumStringExceptions-def"><span class="py-lineno">267</span> <a class="py-toggle" href="#" id="SumStringTestCase.testSumStringExceptions-toggle" onclick="toggle('SumStringTestCase.testSumStringExceptions'); return false;">-</a><span class="py-line">    <span class="py-keyword">def</span> <a class="py-def-name" href="pytils.test.test_numeral.SumStringTestCase-class.html#testSumStringExceptions">testSumStringExceptions</a><span class="py-op">(</span><span class="py-param">self</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="SumStringTestCase.testSumStringExceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SumStringTestCase.testSumStringExceptions-expanded"><span class="py-lineno">268</span>  <span class="py-line">        <span class="py-docstring">"""</span> </span>
<span class="py-lineno">269</span>  <span class="py-line"><span class="py-docstring">        Unit-test for testing sum_string's exceptions</span> </span>
<span class="py-lineno">270</span>  <span class="py-line"><span class="py-docstring">        """</span> </span>
<span class="py-lineno">271</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-199" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-199', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-200" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-200', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-201" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-201', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">272</span>  <span class="py-line">                                      <span class="py-string">"1"</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">)</span> </span>
<span class="py-lineno">273</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-202" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-202', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-203" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-203', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-204" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-204', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">274</span>  <span class="py-line">                                      <span class="py-number">1</span><span class="py-op">,</span> <span class="py-string">"1"</span><span class="py-op">)</span> </span>
<span class="py-lineno">275</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-205" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-205', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-206" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-206', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-207" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-207', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">276</span>  <span class="py-line">                                      <span class="py-number">1</span><span class="py-op">,</span> <span class="py-string">"1"</span><span class="py-op">,</span> <span class="py-number">23</span><span class="py-op">)</span> </span>
<span class="py-lineno">277</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">TypeError</span><span class="py-op">,</span> <span id="link-208" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-208', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-209" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-209', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-210" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-210', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">278</span>  <span class="py-line">                                      <span class="py-number">1</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">,</span> <span class="py-op">(</span><span class="py-number">23</span><span class="py-op">,</span><span class="py-number">24</span><span class="py-op">,</span><span class="py-number">25</span><span class="py-op">)</span><span class="py-op">)</span> </span>
<span class="py-lineno">279</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-211" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-211', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-212" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-212', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-213" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-213', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">280</span>  <span class="py-line">                                      <span class="py-number">1</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">,</span> <span class="py-op">(</span><span class="py-number">23</span><span class="py-op">,</span><span class="py-op">)</span><span class="py-op">)</span> </span>
<span class="py-lineno">281</span>  <span class="py-line">        <span class="py-name">self</span><span class="py-op">.</span><span class="py-name">assertRaises</span><span class="py-op">(</span><span class="py-name">ValueError</span><span class="py-op">,</span> <span id="link-214" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-214', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span><span class="py-op">.</span><span id="link-215" class="py-name"><a title="pytils.numeral" class="py-name" href="#" onclick="doclink('link-215', 'numeral', 'Module pytils.numeral=pytils.numeral-module.html'); return false;">numeral</a></span></span><span class="py-op">.</span><span id="link-216" class="py-name"><a title="pytils.numeral.sum_string
pytils.templatetags.pytils_numeral.sum_string" class="py-name" href="#" onclick="doclink('link-216', 'sum_string', 'Function pytils.numeral.sum_string()=pytils.numeral-module.html#sum_string,Function pytils.templatetags.pytils_numeral.sum_string()=pytils.templatetags.pytils_numeral-module.html#sum_string'); return false;">sum_string</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno">282</span>  <span class="py-line">                                      <span class="py-op">-</span><span class="py-number">1</span><span class="py-op">,</span> <span class="py-number">1</span><span class="py-op">,</span> <span class="py-string">u"any,bene,raba"</span><span class="py-op">)</span> </span>
</div></div><span class="py-lineno">283</span>  <span class="py-line"> </span>
<span class="py-lineno">284</span>  <span class="py-line"><span class="py-keyword">if</span> <span class="py-name">__name__</span> <span class="py-op">==</span> <span class="py-string">'__main__'</span><span class="py-op">:</span> </span>
<span class="py-lineno">285</span>  <span class="py-line">    <span class="py-name">unittest</span><span class="py-op">.</span><span class="py-name">main</span><span class="py-op">(</span><span class="py-op">)</span> </span>
<span class="py-lineno">286</span>  <span class="py-line"> </span><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Sun Oct 29 00:35:03 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
